﻿using System.Collections.Generic;
using Lbb.Common;
using Lbb.Configuration;

namespace Lbb.User
{
    public static class AvatarSizeHelper
    {
        public static Dictionary<AvatarSize, int[]> GetAvatarSizes()
        {
            var sizes = new Dictionary<AvatarSize, int[]>();
            sizes.Add(AvatarSize.Big, ConfigHelper.GetAppSettingValue(UserConfig.CONFIG_PRE_KEY, "BigAvatarSite").ToInts(defaultValue: new int[] { 150 }));
            sizes.Add(AvatarSize.Medium, ConfigHelper.GetAppSettingValue(UserConfig.CONFIG_PRE_KEY, "MediumAvatarSite").ToInts(defaultValue: new int[] { 100 }));
            sizes.Add(AvatarSize.Small, ConfigHelper.GetAppSettingValue(UserConfig.CONFIG_PRE_KEY, "SmallAvatarSite").ToInts(defaultValue: new int[] { 50 }));
            return sizes;
        }
    }
}
